package org.example.common.operation;//package com.njwx.yq.common.operation;
//
//
//import cn.hutool.json.JSONUtil;
//import com.mzt.logapi.service.IParseFunction;
//import com.njwx.yq.business.second.mpservice.NewsMpService;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * https://github.com/mouzt/mzt-biz-log
// *
// * @author muzhantong
// * create on 2021/2/6 9:58 上午
// */
//@Component
//public class QueryOldNewsParseFunction implements IParseFunction {
//    @Resource
//    NewsMpService newsMpService;
//
//    @Override
//    public boolean executeBefore() {
//        return true;
//    }
//
//    @Override
//    public String functionName() {
//        return "queryOldNews";
//    }
//
//    @Override
//    public String apply(Object value) {
//        return JSONUtil.toJsonStr(newsMpService.getById(Long.valueOf(value.toString())));
//    }
//}
